﻿<Window x:Class="DarklandsCompanion.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{Binding Title}" Height="450" Width="400"
        xmlns:views="clr-namespace:DarklandsCompanion.Views"
        WindowStyle="ToolWindow"
        Icon="./../Resources/gargoyle2.png">

    <TabControl IsEnabled="{Binding IsConnected}">
        <TabItem Header="Messages">
            <!--http://karlshifflett.wordpress.com/2008/02/19/wpf-validation-errors-disappear-inside-tabcontrol-when-switching-tabitems/-->
            <AdornerDecorator>
                <views:MessageView DataContext="{Binding MessageVm}" />
            </AdornerDecorator>
        </TabItem>
        <TabItem Header="Saints">
            <AdornerDecorator>
                <views:SaintSearchView DataContext="{Binding SaintSearchVm}" />
            </AdornerDecorator>
        </TabItem>
    </TabControl>
</Window>